{% extends 'base.html'%} {% block contents %}

<div class="excerpt-minic excerpt-minic-index">
    <div>
        {% with messages = get_flashed_messages() %} {% if messages %}
        <ul>
            {% for message in messages %}

            <li>{{ message }}</li>
            {% endfor %}
        </ul>
        {% endif %} {% endwith %}

    </div>

    <form action="" method="post">
        <div class="input-group">
            {{form.hidden_tag()}} {{form.username.label}}
            <br />{{form.username(class='form-control',size=32)}}
            <br /> {% for er in form.username.errors %}
            <span style="color:red">[{{er}}]</span> {% endfor %} {{form.password.label}}

            <br/> {{form.password(size=32,class='form-control')}} {% for error in form.password.errors %}
            <span style="color: red;">[{{ error }}]</span> {% endfor %} {{ form.remember_me() }} {{ form.remember_me.label }}
            {{ form.submit(class='btn btn-default') }}
        </div>
    </form>
</div>

{% endblock %}